const getOption = (config) => {
  return {
    xAxis: {
      start: [0 + 50, config.height - 50],
      length: config.width * 0.8,
      tick: {
        splitLine: {
          length: 0,
        },
        tickLine: {
          length: 0,
        },
        label: {
          offset: [0, 10],
        },
      },
    },
    yAxis: {
      XorY: "y",
      start: [0 + 50, config.height - 50],
      length: config.height * 0.8,
      dataIndex: 2,
      tick: {
        splitLine: {
          length: config.width * 0.8,
        },
        tickLine: {
          length: 0,
        },
        label: {
          offset: [-10, 0],
        },
      },
    },
    series: {
      data: [[]]
    },
    tooltip: {

    }
  }
}

const getData = () => {
  return [
    ['a', 10, 50],
    ['b', 18, 12],
    ['c', 26, 75],
    ['d', 52, 2],
    ['e', 18, 69],
  ]
}

export { getData, getOption }